<template>
	<view class="page">
		<view class="img">
			<u-icon name="https://img.xieling.top/SetPhone.png"  size="100"></u-icon>
		</view>
		<view class="text">
			<view class="text-top">
				绑定手机号
			</view>
			<view class="text-center">
				{{info.phone | formatNum}}
			</view>
			<view class="text-bottom">
				手机号了用来登录和密码找回
			</view>
		</view>
		
		<view class="ingo-cell" style="height: 80rpx;">
			
		<view @click="quit" style="font-weight: 600; color: #FFFFFF; line-height: 80rpx;text-align: center;">
			更换手机号
		</view>
		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:{
					phone:"12345678910"
				}
			}
		},
		filters: {
			formatNum(num) {
				// 手机
				return num.replace(/^(\d{3})\d{6}(\d+)/, "$1******$2")
			}
		},
		methods: {
			quit(){
				uni.navigateTo({
					url:'../CheckPhone/CheckPhone'
				})
			}
		}
	}
</script>

<style lang="scss">
.img{
	width: 100%;
	
	margin-top:200rpx ;
	display: flex;
	justify-content: center;
	
}
.text{
		color: #6b6d6c;
		display: flex;
		flex-direction: column;
		
		align-items: center;
		.text-center{
			color: #FFFFFF;
			font-size: 48rpx;
			font-weight: 600;
		}
		.text-bottom{
			margin-top: 20rpx;
		}
	}
	.ingo-cell {
				height: 100rpx;
				background-color: #3c3f3d;
				border-radius:50rpx;
				width: 80%;
				margin: 0px auto;
				margin-top: 300rpx;
	
			}
</style>
